import React, { Component } from 'react'
import PubSub from "pubsub-js";

export default class B extends Component {
  render() {
    return (
      <div>B</div>
    )
  }
  componentDidMount() {
    PubSub.subscribeOnce('one', (msgName, a) => {
        console.log('B', msgName, a)
    })
}
}
